<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/jeDate/jedate.css" rel="stylesheet"/>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="page-container">
        <div class="col-md-offset-3 col-md-6 col-sm-6 col-xs-12" style="padding: 0px">
            <div class="widget">
                <div class="widget-header bordered-bottom bordered-blue">
                    <span class="widget-caption">领导日程详情</span>
                </div>
                <div class="widget-body">
                    <form class="form-horizontal form-bordered" id="from">
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">行程标题：</label>
                            <div class="col-sm-5" style="line-height: 34px"><span>《<span id="title" name="title"></span>》</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">指定领导：</label>
                            <div class="col-sm-5" id="leader" name="leader" style="line-height: 34px">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">${i18n('system.beginTime')}：</label>
                            <div class="col-sm-5" style="line-height: 34px" id="beginTime" name="beginTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">${i18n('system.endTime')}：</label>
                            <div class="col-sm-5" style="line-height: 34px" id="endTime" name="endTime">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label no-padding-right">事件备注：</label>
                            <div class="col-sm-5" style="line-height: 34px" id="remark" name="remark">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript">
    var recordId = "${parameter.recordId}";
</script>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript">
    $(function () {
        getLeadActivityInfo();
    });

    function getLeadActivityInfo() {
        $.ajax({
            url: "/ret/oaget/getLeadActivityById",
            type: "post",
            dataType: "json",
            data: {recordId: recordId},
            success: function (data) {
                if (data.status == "200") {
                    var recordInfo = data.list;
                    for (var id in recordInfo) {
                        if (id == "leader") {
                            $("#" + id).html(getUserNameByStr(recordInfo[id]));
                        } else {
                            $("#" + id).html(recordInfo[id]);
                        }
                    }
                } else if (data.status == "100") {
                    layer.msg(data.msg);
                } else if (data.status == "500") {
                    console.log(data.msg);
                }
            }
        })
    }
</script>
</html>
